import Vue from 'vue';
import App from '@/App';
import plugin from '@/pages/plugin/home.vue';
import cuCustom from '@/components/cu-custom.vue';
import components from '@/pages/component/home.vue';
import basics from '@/pages/basics/home.vue';
import Store from '@/store';

Vue.component('basics', basics);
Vue.component('components', components);
Vue.component('plugin', plugin);
Vue.component('cu-custom', cuCustom);

Vue.config.productionTip = false;
Vue.prototype.$store = Store;

App.mpType = 'app';

const app = new Vue({
    store: Store,
    ...App
});

app.$mount();

// 声明全局变量
let wechat = getApp();
wechat.vue = app;
